import request from '@/utils/request'

// 查询报名系统列表
export function listScStudentCourse(query) {
  return request({
    url: '/system/scStudentCourse/list',
    method: 'get',
    params: query
  })
}

// 查询报名系统详细
export function getScStudentCourse(studentCourseId) {
  return request({
    url: '/system/scStudentCourse/' + studentCourseId,
    method: 'get'
  })
}

export function getScStudentCourseClass(claId) {
  return request({
    url: '/system/scStudentCourse/classList/' + claId,
    method: 'get'
  })
}
export function getScStudentCourseAttendClass(query) {
  return request({
    url: '/system/scStudentCourse/classList/claTimeAttend',
    method: 'get',
    params: query
  })
}

// 新增报名系统
export function addScStudentCourse(data) {
  return request({
    url: '/system/scStudentCourse',
    method: 'post',
    data: data
  })
}

// 修改报名系统
export function updateScStudentCourse(data) {
  return request({
    url: '/system/scStudentCourse',
    method: 'put',
    data: data
  })
}

// 删除报名系统
export function delScStudentCourse(studentCourseId) {
  return request({
    url: '/system/scStudentCourse/' + studentCourseId,
    method: 'delete'
  })
}
